import { AbstractModel } from './config';
import { InventoryProduceInfo } from './inventoryProduceInfo';
import {Inventory} from "./inventory";

export class FrontStoreStock {
    constructor() {  }
    id:string;
    storeId: string = null;
    inventoryId: string = null;
    stockEnabled: boolean = false;
    quantity: number = null;
    isSoldOut: boolean = false;
    dailyQuantity: number = null;
    soldOutMode: string = 'manual' || 'stock-out';
    productQuantity: number = null;
}

export type FrontStoreStockViewModel = FrontStoreStock & {
    inventoryProduceInfo: InventoryProduceInfo,
    beginTime:string,
    endTime:string,
    inventory:Inventory,
    scrapQuantity:number,
    localProductQuantity:number
} 
